package com.ruoyi.yljf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.yljf.domain.CollectRecord;
import com.ruoyi.yljf.domain.vo.CollectCourseVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Set;

/**
 * 收藏记录Mapper接口
 * 
 * @author metaee
 * @date 2025-04-19
 */
public interface CollectRecordMapper extends BaseMapper<CollectRecord> {
    @Select("select target_id from yljf_collect_record WHERE user_id = #{userId} AND target_type = #{target_type}")
    List<Long> selectIds(@Param("userId") Long userId, @Param("target_type") String target_type);
}
